import { NEKOT, TOKEN } from "../actionTypes"

const initState = {token:"000000"}

export default (state = initState, action) => {

    const { type, data } = action
    switch (type) {
        case TOKEN:  
            return {token:data}
        case NEKOT: 
            return {token:data}
        default:
            return state
    }
}